﻿@model IDictionary<string, string>
@{
	ViewBag.Title = "Видео";
}

@if (Model != null && Model.Any())
{
	<script src="~/Scripts/flowplayer-3.2.12.min.js"></script>

	<div id="video">
		@for (var index = 0; index < Model.Count; index++)
		{
			<div class="text">@Model.ElementAt(index).Value</div>
			<a href="@Model.ElementAt(index).Key" id="@(string.Concat("player", index))"></a>
			<script>
				flowplayer("@(string.Concat("player", index))", "../Scripts/flowplayer-3.2.18.swf", {
					clip: {
						autoPlay: false,
						autoBuffering: true
					}
				});
			</script>
		}
	</div>
}